package com.kaifamiao.time;

import java.time.ZoneOffset;

public class ZonedOffsetInstance {

    public static void main(String[] args) {

        // of( String offsetId )
        ZoneOffset offset = ZoneOffset.of( "+08:00" );
        System.out.println( offset );

        offset = ZoneOffset.ofHours( -8 );
        System.out.println( offset );

        offset = ZoneOffset.ofHoursMinutes( 8, 30 );
        System.out.println( offset );
    }

}
